import request from '@/utils/request'

// 获取批量支付单列表
export function pageBatPay(query) {
  return request({
    url: '/order/batPay/paging',
    method: 'get',
    params: query
  })
}

// 获取批量支付单列表
export function getBatPayCodeById(batPayId, payType) {
  return request({
    url: '/order/batPay/getBatPayCodeById',
    method: 'get',
    params: { batPayId, payType }
  })
}

// 获取订单列表
export function pageProjectOrder(query) {
  return request({
    url: '/order/batPay/pagingProjectOrder',
    method: 'get',
    params: query
  })
}

export function batPayConfirm(batPayId) {
  return request({
    url: '/order/batPay/batPayConfirm',
    method: 'post',
    params: { batPayId: batPayId }
  })
}
